package com.gm;

import javax.swing.*;
import java.awt.*;

/**
 * Created by Administrator on 13-12-14.
 */
public class NotHelloFrame extends JFrame {
    public NotHelloFrame() throws HeadlessException {
        setTitle("Not Hello World!");

        Toolkit dk=Toolkit.getDefaultToolkit();
        Dimension scrSize=dk.getScreenSize();
        int scr_height=scrSize.height;
        int scr_width=scrSize.width;
        setSize(scr_width/2,scr_height/2);
        setLocationByPlatform(true);

        NotHelloPanel notHelloPanel=new NotHelloPanel();
        add(notHelloPanel);
    }
}
